<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>写字</title>
    <link rel="stylesheet" href="text.css">
</head>
<script src="https://cdn.bootcss.com/jquery/3.2.0/jquery.min.js"></script>
<body>
<a href="" id="download"></a>
<canvas id="canvas">该浏览器不支持</canvas>
<img src="" alt="" style="display: none;">
<div id="con">
    <div id="clear"><button>清 除</button></div>
    <div id="save">
        <!--<a href=""  download="filename" class="imgaddress">-->
        <button>保存图片到本地</button>
        <!--</a>-->
    </div>
    <div id="#clear-both"></div>
</div>
</body>
<script src="text.js"></script>
</html>